package com.dayuanit.dy17.spring.entity;

public class Dog {

    private String name;
    private String color;
    private Integer price;

    public Dog(String name, String color, Integer price) {
        this.name = name;
        this.color = color;
        this.price = price;
    }

    public Dog() {
        System.out.println("---------Dog()--------");
    }

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                '}';
    }

    public void eat() {
        System.out.println(name + " eat()");
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public String getColor() {
        return color;
    }

    public Integer getPrice() {
        return price;
    }
}
